package com.log530_projetfinal;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.view.View;

public class DrawView extends View {
    private Paint paint; 
    private EcoSystemMap esm;
    
    public DrawView(Context context) {
        super(context);  
        paint = new Paint();
        paint.setAntiAlias(true);
        esm = new EcoSystemMap();
        this.setBackgroundColor(Color.DKGRAY);
        
    }

    @Override
    public void onDraw(Canvas canvas) {
    	esm.paintMap(canvas, paint);
    }
}